package com.platform.module.common.exception;

public class SystemCommonResult implements CommonResult {

    private String code;

    private String msg;

    public SystemCommonResult(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public SystemCommonResult(String msg) {
        this.code = "500";
        this.msg = msg;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    @Override
    public String getCode() {
        return this.code;
    }
}
